
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Wodry.js</title>
    <meta name="author" content="Alvaro Trigo Lopez" />
    <meta name="description" content="fullPage plugin by Alvaro Trigo. Create fullscreen pages fast and simple. One page scroll like iPhone website." />
    <meta name="keywords" content="fullpage,jquery,alvaro,trigo,plugin,fullscren,screen,full,iphone5,apple" />
    <meta name="Resource-type" content="Document" />


    <link rel="stylesheet" type="text/css" href="css/jquery.fullPage.css" />
    <link rel="stylesheet" href="css/wodry.css">
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="css/examples.css" />


    <style>
    /* Sections
         * --------------------------------------- */
    #section0 img,
    #section1 img {
        margin: 20px 0 0 0;
    }
    #section2 img {
        margin: 20px 0 0 52px;
    }
    #section3 img {
        bottom: 0px;
        position: absolute;
        margin-left: -420px;
    }
    .intro p {
        width: 50%;
        margin: 0 auto;
        font-size: 1.5em;
    }
    .twitter-share-button {
        position: absolute;
        z-index: 99;
        right: 149px;
        top: 9px;
    }
    </style>
    <!--[if IE]>
        <script type="text/javascript">
             var console = { log: function() {} };
        </script>
    <![endif]-->

    <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
    <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.min.js"></script>

    <script type="text/javascript" src="dist/jquery.fullPage.js"></script>
    <script src="dist/bootstrap.min.js"></script>
    <script src="dist/wodry.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
        $('#fullpage').fullpage({
            sectionsColor: ['#6375bc', '#c34f2b', '#5dbe58', '#635db4', '#5abc8e', '#3d4349'],
            anchors: ['about', 'examples', 'how_it_works', 'settings', 'get_it', 'license'],
            menu: '#menu',
            verticalCentered: true,
        });

    });
    </script>

</head>

<body>
  
    <ul id="menu">
        <li data-menuanchor="about"><a href="#about">About</a>
        </li>
        <li data-menuanchor="examples"><a href="#examples">Examples</a>
        </li>
        <li data-menuanchor="how_it_works"><a href="#how_it_works">How it works</a>
        </li>
        <li data-menuanchor="settings"><a href="#settings">Settings</a>
        </li>
        <li data-menuanchor="get_it"><a href="#get_it">Get it</a>
        </li>
        <li data-menuanchor="license"><a href="#license">License</a>
        </li>
    </ul>


    <div id="fullpage">
        <div class="section " id="section0">
            <div class="container">
                <div class="row">
                    <div class="logo">
                        Wo<span class="titleItems">dr|rd</span>y.js
                    </div>
                </div>
                <div class="row">
                    <div class="description">
                        <span class="descriptionItems">Wodry.js is a simple jQuery plugin for a text flipping/rotating written in CoffeeScript|It was inspired by the Adjector.js|Wodry.js does the same things as Adjector.js but it has new features that allow you to set animation from animations collection, set your own callback on content flipping, etc</span>

                    </div>
                </div>
            </div>
        </div>
        <div class="section" id="section1">
            <div class="container">
                <div class="row">
                    <div class="title">
                        Examples
                    </div>
                </div>
                <div class="row example-box">
                    <div class="col-xs-6">
                        <div class="code-block">
                            <pre style="background:#f9f9f9;color:#080808"><span style="color:#691c97">$</span>('<span style="color:#bf4f24">.wodry</span>').wodry({
    animation: <span style="color:#0b6125">'rotateAll'</span>,
    delay: <span style="color:#811f24;font-weight:700">1000</span>
});
</pre>
                        </div>
                    </div>
                    <div class="example col-xs-6">
                        Wodry.js is
                        <span class="wodry">a simple jQuery plugin|a content flipper|wiritten in CoffeeScript</span>
                    </div>
                </div>
                <div class="row example-box">
                    <div class="col-xs-6">
                        <div class="code-block">
                            <pre style="background:#f9f9f9;color:#080808"><span style="color:#691c97">$</span>('<span style="color:#bf4f24">.wodryRX</span>').wodry({
    animation: <span style="color:#0b6125">'rotateX'</span>,
    delay: <span style="color:#811f24;font-weight:700">1000</span>,
    animationDuration: <span style="color:#811f24;font-weight:700">800</span>
});
</pre>
                        </div>
                    </div>
                    <div class="example col-xs-6">
                        Wodry.js is
                        <span class="wodryRX">cool|simple|flexible</span>
                    </div>
                </div>
                <div class="row example-box">
                    <div class="col-xs-6">
                        <div class="code-block">
                            <pre style="background:#f9f9f9;color:#080808"><span style="color:#691c97">$</span>('<span style="color:#bf4f24">.wodryRY</span>').wodry({
    animation: <span style="color:#0b6125">'rotateY'</span>,
    delay: <span style="color:#811f24;font-weight:700">1000</span>,
    animationDuration: <span style="color:#811f24;font-weight:700">300</span>
});
</pre>
                        </div>
                    </div>
                    <div class="example col-xs-6">
                        Wodry.js can
                        <span class="wodryRY">flip|rotate</span> your text
                    </div>
                </div>
            </div>
        </div>
        <div class="section" id="section2">
            <div class="container">
                <div class="row">
                    <div class="title">How it works</div>
                    <div class="content">
                        <div class="content-block">
                            <p>In the first place you need to include wodry.css and wodry.js (wodry.min.js) files then create html tag with content that will flip/rotate (like this):</p>


                            <pre style="background:#f9f9f9;color:#080808">&lt;<span style="color:#bf4f24">div</span>>
    Bla bla bla &lt;<span style="color:#bf4f24">span</span> <span style="color:#bf4f24">class</span>=<span style="color:#0b6125">"wodry"</span>>word1|word2|word3&lt;/<span style="color:#bf4f24">span</span>>
&lt;/<span style="color:#bf4f24">div</span>>
</pre>
                        </div>

                        <div class="content-block">
                            <p>And in the script tag add this:</p>


                            <pre style="background:#f9f9f9;color:#080808"><span style="color:#691c97">$</span>('<span style="color:#bf4f24">.wodry</span>').wodry();
</pre>
                        </div>

                        <div class="content-block">
                            <p>In this case it will works with default settings. But if you want you can specify settings of wodry.js:</p>


                            <pre style="background:#f9f9f9;color:#080808"><span style="color:#691c97">$</span>('<span style="color:#bf4f24">.wodry</span>').wodry({ <span style="color:#5a525f;font-style:italic">//settings });</span>
</pre>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="section" id="section3">
            <div class="container">
                <div class="row">
                    <div class="title">
                        Custom settings
                    </div>
                    <div class="content">
                        <div class="content-block">
                            <p>Settings object has the following fields:</p>
                            <ul>
                                <li>
                                    <strong>separator</strong>: sets a custom separator between flipped text.
                                    <strong>Default value</strong>: '|";</li>
                                <li>
                                    <strong>delay</strong>: sets a delay of interations.
                                    <strong>Default value</strong>: 2000;</li>
                                <li>
                                    <strong>animationDuration</strong>: sets duration of animation.
                                    <strong>Default value</strong>: 500;</li>
                                <li>
                                    <strong>animation</strong>: sets a type of animation.
                                    <strong>Default value</strong>: 'rotateY';</li>
                                <li>
                                    <strong>callback</strong>: sets a callback that calls on each iteration.
                                    <strong>Default value</strong>: an empty function;</li>
                                <li>
                                    <strong>shift</strong>: specify the X,Y and Z values of shifting.
                                    <strong>Default value</strong>: {x:0,y:0,z:0};</li>
                            </ul>
                        </div>
                        <div class="content-block">
                            <p>List of animations: rotateX, rotateY, rotateAll, scaleX, scaleY, scaleAll, clockwise, anticlockwise</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="section" id="section4">
            <div class="container">
                <div class="row">
                    <div class="title">Get it</div>
                    <div class="content">
                        <div class="content-block" style="text-align:center;">
                            <p>You can install it from bower: <pre class="code-span">bower install wodry</pre>
                            </p>

                            </pre>
                            
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="section" id="section5">
            <div class="container">
                <div class="row">
                    <div class="title">License</div>
                    <div class="content">
                        <div class="license">
                            <p>
                                The MIT License (MIT)
                            </p>
                            <p>
                                Copyright (c) 2014 Sergey Golovin
                            </p>
                            <p>
                                Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
                            </p>
                            <p>
                                The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
                            </p>
                            <p>
                                THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
    var counter = 0;
    $('.wodry').wodry({
        animation: 'rotateAll',
        delay: 1000
    });
    $('.wodryRX').wodry({
        animation: 'rotateX',
        delay: 2000,
        animationDuration: 1200
    });
    $('.wodryRY').wodry({
        animation: 'rotateY',
        delay: 1000,
        animationDuration: 300
    });
    $('.descriptionItems').wodry({
        animation: 'scaleAll',
        delay: 8000,
        animationDuration: 800
    });
    $('.titleItems').wodry({
        animation: 'rotateY',
        delay: 2000,
        animationDuration: 800,
        callback: function() {
            var color1 = '#ccff84',
                color2 = '#a5dfff'
            if (counter % 2 === 0) {
                $('.titleItems .back-face').css({
                    color: color1
                });
                $('.titleItems .front-face').css({
                    color: color2
                });
            } else {
                $('.titleItems .back-face').css({
                    color: color2
                });
                $('.titleItems .front-face').css({
                    color: color1
                });
            }
            counter++;
            if (counter > 100) {
                counter = 0;
            }
        }
    });
    </script>
</body>

</html>

